<!-- jQuery -->
<script src="/Public/js/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="/Public/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="/Public/sb/metisMenu/dist/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="/Public/js/sb-admin-2.js"></script>
<script src="/Public/js/jquery.md5.js"></script>
<script src="/Public/js/ejs_production.js"></script>
<% include confirm.html %>
<script>
    var ajaxpath = "/admin";
    $(function () {
        $(".logout").on("click", function () {
            $.ajax({
                url: ajaxpath + "/logout",
                data: {},
                type: "POST",
                dataType: "json",
                success: function (data) {
                    if (!data.errno) {
                        window.location.replace(ajaxpath + "/login");
                    } else {
                        alert("退出失败");
                    }
                },
                error: function () {
                    alert("网络错误");
                }
            });
        });
    });
</script>